/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package digitaldreamers.libraries.games.clients.networkmanagement.packets.sending;

import java.io.IOException;

/**
 * Abstract class for all sendable packet classes.
 *
 * @author DaoLe
 */
public abstract class AbSendablePacket {

    // Packet ID.
    protected int m_iPacketID;

    /**
     * Convert packet data to byte array.
     *
     * @return The converted byte array.
     * @throws IOException Error that occurred while converting data.
     */
    public abstract byte[] toByteArray() throws IOException;
}